package com.itobase.statusDetect.Service.impl;

import com.itobase.statusDetect.Model.User;
import com.itobase.statusDetect.Repository.UserRepository;
import com.itobase.statusDetect.Service.ShiroUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author htyu
 * @date 2019/4/24
 */
@Service
public class ShiroUserServiceImpl implements ShiroUserService {

    @Autowired
    UserRepository userRepository;


    @Override
    public User findByName(String name) {
        return userRepository.findByName(name);
    }
}
